package com.med.mapper;

import com.med.entity.AppointmentDO;
import com.med.entity.MedicalRecordDO;
import com.med.entity.MedicineOrderDO;
import com.med.vo.MedicalRecordVO;
import com.med.vo.MedicineOrderVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface VisitMapper {
    List<MedicalRecordDO> selectMedicalRecord(Integer userId);

    List<AppointmentDO> selectUserMessage(String userName);

    Integer insertMedicalRecord(@Param("medicalRecordVO") MedicalRecordVO medicalRecordVO);

    //创建药品订单
    Integer createMedicineOrder(@Param("medicineOrderVO") MedicineOrderVO medicineOrderVO);

    //    创建订单详情表
    Integer createMediciOrderDatil(@Param("medicineOrderVO") MedicineOrderVO medicineOrderVO);

    //    根据订单号查询订单id
    List<MedicineOrderDO> queryOrderId(@Param("medicineOrderVO") MedicineOrderVO medicineOrderVO);
}
